var div = document.getElementById("circle");

function start(num, r, R, title = '') {
    h1 =document.createElement("h1");
    h1.innerHTML = title;
    div.appendChild(h1);

    for (let i = 0; i < num; i++) {
        const divNode = document.createElement("div");
        const pNode = document.createElement("p");
        pNode.style = `width:${2*r}px;height:${2*r}px;`;
        divNode.appendChild(pNode)
        divNode.id = "div"+i;
        divNode.style = `transform: rotate(${i*10}deg);width:${2*r}px;height:${2*R}px;left:${(800-2*r)/2}px;bottom:${400-2*R}px;`
        div.appendChild(divNode)
    }
}